/* 
 * Copyright [2018] [Alex/libo(liboware@gmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.infodb.file.bean.file;

import java.util.Date;

import com.hyts.infodb.bean.bo.BaseBO;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;

/** 
 * @author LiBo/Alex
 * @see com.hyts.infodb.bean.bo.BaseBO
 * @since V1.0
 * @version V1.0 
 */
@Data
@EqualsAndHashCode(callSuper=false)
public final class FileBO extends BaseBO{
    
    /**  
     * @fieldName serialVersionUID
     * @fieldType long
     */ 
    private static final long serialVersionUID = 8637973093689085415L;

    /**
     * <p>用户信息</p> 
     * @fieldName userId
     * @fieldType Long
     */ 
    private Long userId;
    
    /**  
     * <p>文件名称：可以作为保存原名称信息</p> 
     * @fieldName fileName
     * @fieldType String
     */ 
    private String fileName;
    
    /**  
     * <p>文件目录路径</p> 
     * @fieldName filePath
     * @fieldType String
     */ 
    private String filePath;
    
    /**
     * 是否为远程 本地或者远程OSS
     */
    private Byte isRemote;
    
    /**  
     * <p>文件大小</p> 
     * @fieldName fileSize
     * @fieldType long
     */ 
    private long fileSize;
    
    /**  
     * <p>最后一次上传时间</p> 
     * @fieldName lastUpdateDate
     * @fieldType Date
     */ 
    private Date lastUpdateDate;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 目录ID
     */
    private Long directoryId;
    
    /**  
     * <p>是否隐藏</p> 
     * @fieldName isHidden
     * @fieldType Byte
     * 0:显示，1:隐藏
     */ 
    private Integer isHidden;
    
    /**  
     * <p>远程目录</p> 
     * @fieldName remotePath
     * @fieldType String
     */ 
    private String remotePath;

    /**
     * 文件原始名称
     */
    private String fileOrginName;

    /**
     * 业务ID
     */
    private Long bizNo;
}
